<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<% String adminName = request.getParameter("adminName");%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>取消订单</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

    <link rel="stylesheet" type="text/css" href="css/base.css">
    <link  type="text/css" rel="stylesheet" href="css/smartmenu.css" >
    <script type="text/javascript" src="<%=basePath%>/jslib/index/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/index/smartmenu-min.js"></script>
    <script type="text/javascript" src="<%=basePath%>/jslib/Menu.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var start = $("#myorder").html();
            var result = $("#show");
            var result2 = $("#decide");
            if(start == null){
                result.css("display","none");
                result2.css("display","none");
            }
        });
    </script>
</head>

<body>
<%@ include file="/page/share/menu.jsp" %>
<div id="content">
<form action="Order!findOrder.action" method="post" id="select">
    <table align="center"  cellspacing="0" style="margin: 0 auto; ">
        <thead align="center">
        <tr>
            <td align="right">
                &nbsp&nbsp&nbsp&nbsp请输入需要取消的订单编号：
            </td>
            <td>
                <input type="text" name="orderId" size="14" style="width: 200px;height: 30px;">
                <input type="hidden" name="flag" value="1">
                <input type="submit" name="submit" value="确认" id="stb" class="btn">

            </td>
        </tr>
        </thead>
    </table>
</form>
<form method="post" id="show">
    <table align="center" border="1" cellspacing="0">
        <thead align="center">
        <tr>
            <td>
                订单编号
            </td>
            <td>
                创建时间
            </td>
            <td>
                预约客户姓名
            </td>
            <td>
                预约唱K时间
            </td>
            <td>
                预计结束唱K时间
            </td>
            <td>
                联系电话
            </td>
            <td>
                人数
            </td>
            <td>
                地址
            </td>
        </tr>
        </thead>
        <tr>
            <s:iterator value="order" var="b">
        <tr>
            <td id="myorder">
                <s:property value="#b.orderId"/>
            </td>
            <td>
                <s:property value="#b.createDate"/>
            </td>
            <td>
                <s:property value="#b.name"/>
            </td>
            <td>
                <s:property value="#b.beginTime"/>
            </td>
            <td>
                <s:property value="#b.endTime"/>
            </td>

            <td>
                <s:property value="#b.tel"/>
            </td>
            <td>
                <s:property value="#b.singerNum"/>
            </td>
            <td>
                <s:property value="#b.address"/>
            </td>
        </tr>
        </s:iterator>
        </tr>
    </table>
</form>
<form action="Order!cancelOrder.action" method="post" id="decide">
    <table align="center"  cellspacing="0">
        <thead align="center">
        <tr>
            <td>
                <input type="hidden" name="orderId" value="<s:property value="#b.orderId"/>" style="width: 200px">
                <input type="submit" name="submit" value="确认" id="stb" class="btn">
            </td>

        </tr>
        </thead>
    </table>
</form>
</div>
<div id="bottom">
    <ul>
        <li>
            联系我们：
            <a href="mailto:willsonz@qq.com?subject=KTV综合管理系统">willsonz@qq.com</a>
        </li>
    </ul>
    <ul>
        <li>
            ©&nbsp;Made By Cloud Team.
        </li>
    </ul>
</div>
</body>
</html>

